package com.csdj.shop.service.user;

import com.csdj.shop.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
 * author:cloud
 * date:2021/2/26 0026
 **/
public interface IUserService {

    /**
     * 注册
     * @param username
     * @param password
     * @return
     */
    public String regUser(String username, String password);

    /**
     * 登录
     * @param request
     * @param username
     * @param password
     * @return
     */
    public String login(HttpServletRequest request, String username, String password);

    public int updateUserInfo(User user);
}
